4 ms·
It says it has indentation syntax but it clearly uses braces TypeScript-like. I wonder why author describes it as a mix between Python and TypeScript.
by mmoskal 4y ago
It says it has indentation syntax but it clearly uses braces TypeScript-like. I wonder why author describes it as a mix between Python and TypeScript.
- ActorNightly 4y agoJS an Python are the top active languages on Github, so its probably due to the training data.
- ardit33 4y agoLooks like Typescript and a bit of Swift as well....
- panzi 4y ago»-> List[Element]« is Python syntax, so is »for x in xs« and »f"text {var}"«. In TypeScript those would be »: Element[]«, »for (const x of xs)«, and »`text ${var}`«.
- visarga 4y agoSo it is proof that GPT4 still makes mistakes. But just one reported mistake in a very long session. And it could fix itself if prompted.
- rudy6912 4y agoThere are more mistakes, as always with GPT. For example: > Some programming languages like TypeScript and Swift use a colon for both variable type annotations and function return types. The choice of using -> in TenetLang [...] Swift uses -> for function return types.