Better HN
topnewbestaskshowjobs
Log inSign up

bdmatatu

18 karma · joined Dec 1, 2017 (8y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

> It’s not like programming languages support representing 61-second minutes anyway

Raku supports leap seconds. see https://docs.raku.org/type/Instant

comment 6y ago · link · parent

I also like how Raku has extended this with the Q operator, allowing one to specify what should be interpolated (scalars, escape sequences, closures, etc) also with arbitrary delimiters --

   Q/I got $5 \sigh /   # literal
   Q:s/Hello $name/     # just scalars
   Q:b/hello world\n/   # just backslash escape sequences
https://docs.raku.org/syntax/Q

3.

Types of whitespace(blog.matatu.org ↗)

1 points · by bdmatatu · 8y ago · discuss

4.

Inventing a lightweight markup language(blog.matatu.org ↗)

1 points · by bdmatatu · 8y ago · discuss

5.

tailgrep: tail -f | grep(blog.matatu.org ↗)

2 points · by bdmatatu · 8y ago · discuss

comment 8y ago · link · parent

In the example, the effects of "use Jolly" are restricted to the enclosing scope, e.g.

  use lib <.>; 
  { use Jolly;
    # inner scope
  }
  # TODO: this does not throw an error