Hey guys
Hey guys,
Have someone suggested a Delphi syntax for pattern matching language support before?
Something like Scala, Haskell or even C#7 support.
Thanks :D
Have someone suggested a Delphi syntax for pattern matching language support before?
Something like Scala, Haskell or even C#7 support.
Thanks :D
I'm not sure what you mean - something like regular expressions? Delphi has a PCRE-compatible library inbuilt I think.
ReplyDeleteDavid Millington Sorry, I was lazy again hihihihi :D I meant something like Scala or C#7's pattern matching syntax.
ReplyDeletei.e.: https://github.com/dotnet/roslyn/issues/206
ReplyDeletewhich looks nice - but a challenge to fit into something pascalish?
Lars Fosdal I think Scala pattern matching looks really pascalish: https://kerflyn.wordpress.com/2011/02/14/playing-with-scalas-pattern-matching/
ReplyDeleteBut getting so far in Delphi would require the language support FP features. However support for strings or type in case statements would already be a huge improvement.
Wow, this is cool.
ReplyDeleteI have no idea about how Delphi would implement pattern matching support in a pascalish way :D, I would love to see suggestions :D
ReplyDeleteGood luck getting any sort of advanced language change any time soon.. how many years have we been waiting for lamdas, ternary operator and a buch ofther features that could reduce cermony... not holding my breath.
ReplyDelete