Y
Hacker News
new
|
ask
|
show
|
jobs
by
kijin
2839 days ago
An object-oriented version (assuming mutable strings) might be:
A$.REP("123", 4, 0)
So the syntax is weird, but the concept isn't totally unusual.
1 comments
pedasmith
2839 days ago
Exactly. It's a perfectly reasonable concept with a completely outlandish syntax. I don't know of any current programming language where the RHS of an assignment will even know what the LHS is.
link