File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1+ # What to Know when Learning a New Language
2+
3+ ## File Types and Configuration Files
4+
5+ A language might use different extensions to identify the usage of the source.
6+ For example, powershell uses ` .ps1 ` to identify a script and ` .psm1 ` to identify a module file.
Original file line number Diff line number Diff line change 11# Overview
22
33- Integrated with ` .NET `
4- Reuse almost any type in ` .NET ` .
4+ - Reuse almost any type in ` .NET ` .
55- Dynamic typing
6- Powershell adds extra attribute and properties on dotnet types to enhance experience.
6+ - Powershell adds extra attribute and properties on dotnet types to enhance experience.
77- Case insensitive
8- All language syntax, pattern syntax and even strings are case-insensitive.
9- (There's exception for file system on non-Windows platform)
8+ - All language syntax, pattern syntax and even strings are case-insensitive. (There's exception for file system on non-Windows platform)
109- Everything is object, more than plain text in shell.
11- Powershell formats the object value as a table if the object is not a primitive type.
12- For primitive type, ` Tostring() ` will be used instead.
10+ - Powershell formats the object value as a table if the object is not a primitive type. For primitive types, ` Tostring() ` will be used instead.
1311- Always handle both array and singular object.
14- A powershell cmdlet always accepts an array or an single object as input parameter.
15- And returns the result as an array or an object too.
12+ - A powershell cmdlet always accepts an array or an single object as input parameter. And returns the result as an array or an object too.
You can’t perform that action at this time.
0 commit comments