15

so many great fucking small or niche languages are ruined by shitty/odd syntaxes

sorry, but if you use the | character for function arguments, i'm not touching your language

for FUCKS sake

Comments
  • 4
    I agree. I've seen some absolutely ridiculous syntaxes on otherwise novel languages. It makes me sad.

    Though to be fair concerning the pipe, Ruby uses pipes to identify arguments passed to blocks (lambdas, etc.). It's a little weird, but I've gotten used to it:

    Hash.each { |key, value| ... }

    It's one of the stranger bits of Ruby syntax, though doesn't hold a candle to the fact that you call a proc with square brackets. 🙄 That makes the pipes look positively beautiful.
  • 1
    Could you please list a few of such languages?
  • 2
    @Root

    Rust does that too for lambdas. imo, it looks better than something like () => {}

    So like

    vec![3,4,5].iter().map(|x| x+5)

    looks better than

    vec![3,4,5].iter().map((x) => {x+5})
  • 1
    @-vim- I definitely agree!
  • 1
    @Yamakuzure elixir, crystal, nim
Add Comment