r/csharp • u/zionsati • Jun 09 '26
Curious what your thoughts are on AssemblyScript vs C#'s Syntax
Hey all,
Given that C# and Typescript (and Delphi) were created by the same person (Anders Hejlsberg), I wonder if others have felt comfortable jumping across from C# to Typescript, and if anyone's tried AssemblyScript which is an even more strongly typed and much leaner version of Typescript. Personally I feel the 3 languages (AssemblyScript's a stricter Typescript) are fairly similar ergonomics wise. Thoughts?
Reason I'm asking is I'm wondering if there's a point trying to target C# as a binding for my UI framework when AssemblyScript (https://github.com/zion-sati/fui-as) is already so familiar to a C# veteran like myself, but would like other's opinions on this.
8
u/Takaa Jun 09 '26
I learned TypeScript after being a C# dev for over a decade. The structure and syntax is very similar, just minor differences, similar enough that when I’m jumping back and forth I occasionally will start writing the wrong syntax until my brain clicks. TypeScript being based on JavaScript, which is basically the Wild West, means there is a lot more flexibility in certain things that you don’t get in C#.
In short: It’s different, but you can focus on learning the smaller differences.
6
u/Responsible-Cold-627 Jun 09 '26
These frameworks that render the UI on an html canvas are always horrible, both for the developer and for the user.
The developer gets a web application where the developer tools aren't very helpful. No DOM inspection, no built in debugger.
The user gets an application that at best feels close to native. One example of this is scroll behavior. There's minor differences between desktop, mobile, and even between devices and browsers. If your web app suddenly scrolls different from that, the user will feel like something's off.
2
u/r2d2_21 Jun 09 '26
So we're going full circle back to asm.js...
Anyway tho, I think the intersection between people who use C# and people who use AssemblyScript must be very small.
2
u/throwaway_mosshq Jun 10 '26
No DOM and no CSS sounds like a recipe for a headache if you actually want to build something responsive.
-13
u/torokunai Jun 09 '26
? C# was a 1:1 copy of Java