• 0 Posts
  • 104 Comments
Joined 2 years ago
cake
Cake day: August 19th, 2023

help-circle




  • Gradually typed is a great description because it’s neither fully static or dynamic. TS does allow you to circumvent the types too easily to be called statically typed.

    const strings: string[] = ([1] as any[])
    

    Is ok in TS land so the type of strings is not really static so to speak because you can assign whatever to it. Writing this in Dart would give

    error - The argument type 'List<dynamic>' can't be assigned to the parameter type 'List<string>'. - argument_type_not_assignable
    

    if I’m not mistaken.
















  • I also had issue when I was working on a pycharm project back when I was on windows. During setup it asked me “What’s your name?” and my name has a cheeky accent which Windows was decided should be the name of my Home folder. Home folder also has appdata and whatnon so which the build system didn’t expect to have a an accent in the folder path.

    I ended up having to create a different folder and link to it then move all the path configurations to that folder link just so I could get imports working.