Skip to content

For better DSL #6194

@p0W3RH311

Description

@p0W3RH311

this code work

function a 
{
   b {
        write-host 'hello'
   }
}

function b 
{
   param([scriptblock]$sb)
   &$sb
}

but this don't work because the character {

function a 
{
   b 
  {
        write-host 'hello'
   }
}

function b 
{
   param([scriptblock]$sb)
   &$sb
}
PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-rc.2
PSEdition                      Core
GitCommitId                    v6.0.0-rc.2
OS                             Microsoft Windows 6.3.9600
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-Languageparser, language semantics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions