Dart and underscores

后端 未结 1 808
孤街浪徒
孤街浪徒 2021-02-19 05:07

I decided to implement the functional underscore.js library in Dart.

I wrote the functions in \'underscore.dart\' with some example functions shown below:



        
相关标签:
1条回答
  • 2021-02-19 05:47

    A prepending underscore means that the function is library private. That is, you can't use it in an other library. See Libraries and Visibility.

    Libraries not only provide APIs, but are a unit of privacy: identifiers that start with an underscore (_) are visible only inside the library.

    0 讨论(0)
提交回复
热议问题