« first day (3941 days earlier)      last day (990 days later) » 

2:01 PM
I wonder why Anders Hejlsberg (the creator of c# and typescript) did not make the syntax of typescript exactly similar to c# so c# programmers no longer need to learn a new diverging syntax.
 
2:46 PM
because it was meant to be similar to Javascript instead
on top of that, neither C# nor Typescript have their own syntax
both are copied from another language
 
But TypeScript is not similar to JavaScript. I am learning TypeScript and get confused with many languages I have learnt: Dart, c#, Java, c++, python and now TypeScript.
 
 
2 hours later…
4:51 PM
but typescript's syntax is very similar to javascript
in fact, in 99% of the cases, it is javascript syntax with something more
 
 
6 hours later…
11:18 PM
@Wietlol: OK. Thank you. I have one more question. Which one do you recommend when writing a class (in a code base library) that provides notification mechanism to the client (code that makes use of the code base library)? (a) Using polymorphism in which the class provides virtual methods that the client can override. (b) Using event in the class so the client can provide an event handler method to subscribe to the event.
There are always no hanging bats on weekends.
 

« first day (3941 days earlier)      last day (990 days later) »