Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root797766yI 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. -
-vim-31256y@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})
Related Rants
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
rant
fuck fuck fuck fuck fuck fuck fuck fuck fuck
bad syntax
small languages