3 ms·
CurrentRound^ : int = 0 for (i = 1..NumberOfRounds): CurrentRound := i if(!SetupPlayersAndSpawnPoints()?): ShutdownGame()
by dharmaturtle 5y ago
CurrentRound^ : int = 0
for (i = 1..NumberOfRounds):
CurrentRound := i
if(!SetupPlayersAndSpawnPoints()?):
ShutdownGame()
return
else:
Players.PutAllInStasisAllowEmotes()
ResetMatch()
Looks nonfunctional as heck to me. Also it isn't expression-based - at least that's what the bare `return` says to me.
Honestly just looks like a dialect of Python. I wonder what SPJ will do with it...
- runevault 5y agoWhat is SPJ supposed to bring to this? Are they gonna throw a top end type system onto it or something? Nothing about this looks interesting at first blush.
- shaunxcode 5y agoIf it were up to me: make sure it has the primitives required to write things in a "mostly functional" way if the programmer desires/when the problem fits the space. Not sure the whole list but maybe starting with nice syntax for lambdas and built in immutable collections? Maybe a macro system for introducing syntax? OK you caught me just make it a lisp with python syntax and types.
- keyle 5y agoUgh. Failing to see why lua isn't a better choice than this. Even a subset of lua augmented with those funky ^? stuff to achieve what you want to achieve in terms of safety. Feels like "the whole everything is looking old we got new keywords! Metaverse! We need new languages...". The older I get the more I feel like languages are just as generational as developers come into the market. They don't want to write Java, even python is getting old. We need new fresh languages every 5-10 years which frankly just feels like the same walls with a fresh coat of paint.
- Smaug123 5y ago> same walls with a fresh coat of paint Honestly, if anyone can solve that problem, SPJ can!