by strkek · 8y ago · 0 comments
> The _only_ downside I find of Elixir is that it looks too Ruby-ish to my taste.
Yeah, preach it!
> I'm still waiting for the day a C-like language that runs on BEAM becomes mainstream enough.
Eww.
I wouldn't mind a Lisp syntax too, but Ruby and ML are definitely a "no" from me. I just can't bring myself to like them. Their syntax feels too "loose", not sure if that makes sense.
Btw, I know there are some Lisp-like implementations out there, but same criteria applies: still not mainstream enough as of now.
- `elsif`
- `end`
- `unless`
- `a unless b`
- `f 1` vs `f(1)`
- Implicit method calls (`f` vs `self.f`). I know both have different behavior, I just don't like this "implicit self".
... etc.
I find Python okay-ish though, as paradoxical and nonsensical as that might sound. But in my toolchain Python has been reduced to little more than a calculator, since it's been replaced by Go for most of my automation needs.
Btw, friendly reminder that this is my subjective opinion regarding my own tastes, not absolute truth on aesthetics.
EDIT: Formatting.
> The _only_ downside I find of Elixir is that it looks too Ruby-ish to my taste.
Granted. More ML-like would be nice.
> I'm still waiting for the day a C-like language that runs on BEAM becomes mainstream enough.
WTF!?
I used to have a similar desire!
I actually started working on a language that transpiled to Haskell, like CoffeeScript -> JS. What I found, however, is a lot of little ways to make it more and more terse, until I ended up with something resembling Haskell’s syntax.
After this happened several times, I had some new found appreciation for Haskell’s syntax. It’s god awful for someone coming from a C-like background, but that seems like a very temporary problem.
I went from hating Haskell’s syntax so much I wanted a language wrapping it, to realizing it’s actually rather well thought out and other languages have a lot of noise to them. Lots of curly braces and semicolons that seem to mostly be there to make writing a compiler easier.
I still love C-like syntax, and still don’t like Haskell’s syntax, but not enough to write a CoffeeScript-like language.
# events per day
ndbh.fetch('select ts from tbl').all.map { |row|
row[:ts]
}.map { |t|
t.strftime('%Y-%m-%d')
}.each { |day|
days[day] += 1
}
(yes this could be conciser)This is generally frowned on, and I'm sure everyone who likes having this style
foo
.map {}
.select {}
.blah {}
will frown as well, but it's so much more visually appealing to me, coming from a C/perl background when I first encountered Ruby (many years ago).Funny how important syntax is. So easy to look at code in another style/language and go THATS NOT RIGHT!!
I'm waaay too picky in this aspect. I once was reading about Ada (before my bias towards C-like languages kicked in). It looked interesting and all, and I was like "Hmm, not bad, learning this might be interesti--"
> Put_Line
Nope.
The irony here is, my current language of choice is Go, and tests must be named like `TestType_Method` and I'm like "arrrgggghhh".
EDIT: Btw I don't really mind indentation styles, brace placement, "dot placement" (like your example) and those things, as long as they're consistent across the codebase.