dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.7K
active users

#rakulang

1 post1 participant0 posts today

Huh. #Rakulang surprises me again when playing around with Bufs.

Invoking the reduction operator against a Buf coerced into a list just works:

```
raku -e 'say [+] Buf.new(1,2,3).list;'
6 # The sum of all elements
```

Invoking ANY reduction operator against a Buf directly just returns the number of elements:

```
raku -e 'say [+] Buf.new(1,2,3);
3

raku -e 'say [*] Buf.new(1,2,3);
3
```

This feels like undefined behavior. Shouldn't this be a syntax error?

Replied in thread

@bortzmeyer Zig is one of three languages I have my eye on!

- #Zig - Procedural and easier to read than C.
- #Haskell - Functional in the extreme.
- #Rakulang - Can be functional, can be procedural, can be OO. Fantastic grammar / #regex model.

I think they complement each other. Every Haskell guy I have introduced to Raku has loved it. I've known a few people who use Zig when they don't feel like being purely functional.

Can Cro be used to stand up a simple website? I know zero JS and negligible CSS. I'm mostly a Raku and Perl guy who is 100% on the back end. At minimum I need a primer for basic JS, CSS forms, and likely Cro or #Dancer.

The site will send text and hashes to and from the back end and manage a modest number of users with their own accounts. Message forms need to look nice on the front end. This is for a ham radio project of mine.