Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What under-the-radar technology are you excited about?. Parent comment
It's intended as a shell semantic where anything bare on the command line just gets run, no matter your scope.
However when we introduced classes, we thought it was a more "dev-oriented" semantic, so we changed return there.
This will only return 'this will return':
class foo { [string] ReturnTest() { 'this will not return' return 'this will return' } } ([foo]::new()).ReturnTest()
There are no comments on this comment yet.
It's intended as a shell semantic where anything bare on the command line just gets run, no matter your scope.
However when we introduced classes, we thought it was a more "dev-oriented" semantic, so we changed return there.
This will only return 'this will return':