gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.31k stars 156 forks source link

`/` operator for nodejs's path.join #1106

Closed bung87 closed 4 years ago

bung87 commented 4 years ago

the current implementation is spliting string, I think path.join is more often than split, also for path.join reduce more charactors than split which more usefull.

rhendric commented 4 years ago

At this point, backward-incompatible changes like this would need very strong justifications to be considered (basically, the existing feature to be broken has to be seriously flawed). I'm not sure either of these idiosyncratic overloads of / is objectively better than the other (although your proposal has the disadvantage that it has no use outside of Node.js), but certainly this is not so much better to justify breaking existing code. So sorry, but this isn't something that will happen.