dotnet / dotnet/vblang

Bring back the ? Print statement

Open
#103 4 comments 4 reactions 1 assignee Claimed by @AnthonyDGreen View on GitHub
Proposal Ready-to-Review
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

Building on the scenario of #102 there's another thing that might be simplified--basic output.

Today in the Immediate Window a user can type `? ` to print the value of that expression. This doesn't work in normal VB though it did work in VB6 and earlier as well as QBasic. We already parse this but the parser only excepts it legally in .vbx files.

What problem does this solve? Knowing what the correct way to printf debug in context. Depending on the app type it could be correct/preferred to:

```
Console.WriteLine()
Debug.WriteLine()
Trace.WriteLine()
MessageBox.Show() ' Dangerously modal
Response.Write()
```

and I'm sure there are several others. If we could somehow tie this into .NET's debug or trace listeners could we abstract away all these variations?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.