Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Nov 25, 2024
1 parent d934c54 commit e7ed2e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# What to Know when Learning a New Language

## File Types and Configuration Files

A language might use different extensions to identify the usage of the source.
For example, powershell uses `.ps1` to identify a script and `.psm1` to identify a module file.
13 changes: 5 additions & 8 deletions docs/document/Powershell/docs/1.Overview.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Overview

- Integrated with `.NET`
Reuse almost any type in `.NET`.
- Reuse almost any type in `.NET`.
- Dynamic typing
Powershell adds extra attribute and properties on dotnet types to enhance experience.
- Powershell adds extra attribute and properties on dotnet types to enhance experience.
- Case insensitive
All language syntax, pattern syntax and even strings are case-insensitive.
(There's exception for file system on non-Windows platform)
- All language syntax, pattern syntax and even strings are case-insensitive. (There's exception for file system on non-Windows platform)
- Everything is object, more than plain text in shell.
Powershell formats the object value as a table if the object is not a primitive type.
For primitive type, `Tostring()` will be used instead.
- Powershell formats the object value as a table if the object is not a primitive type. For primitive types, `Tostring()` will be used instead.
- Always handle both array and singular object.
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.
- 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.

0 comments on commit e7ed2e1

Please sign in to comment.