← Back to context

Comment by Trasmatta

1 year ago

Ruby is the sweet spot for me. I don't like the syntactic whitespace in Python, but still prefer the cleaner look it not having braces everywhere.

raku - the bastard child of functional and OO

  class MyTable is export {
    has @.data;
 
    multi method new(@data) {
      $.new: :@data;     
    }

    method render {
      table :border<1>,
        tbody do for @!data -> @row {
          tr do for @row -> $cell {
            td $cell              } };
    }
  }

  • Many languages like Ruby have sweet "Syntactic Sugar", but Raku has "Syntactic Syrup of Ipecac".

    • lol - thanks for adding to my vocab!

      [in defence of raku, while it truly is marmite wrt Ruby / Python, there is a very loyal core of smart people that love the freedom and expressiveness it offers]

      3 replies →