winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.02k stars 198 forks source link

Improve `log()` ergonomics for printing various types #6141

Open eladb opened 6 months ago

eladb commented 6 months ago

Use Case

I'd like to be able to easily log:

let json = readJson();
log(json);

let arr = [1,2,3];
log(arr);

log(1234);

All of these don't work!

This is a very annoying limitation.

Proposed Solution

No response

Implementation Notes

I have to either use `{foo}

Component

No response

Community Notes

staycoolcall911 commented 6 months ago

Duplicates #225

eladb commented 6 months ago

@staycoolcall911 this is not a direct duplicate of #225 - let's either keep both or merge the requirements.

github-actions[bot] commented 3 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!