Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add judgment type and better in REPL print debugging #1735

Closed
d1y opened this issue Aug 25, 2019 · 4 comments
Closed

Add judgment type and better in REPL print debugging #1735

d1y opened this issue Aug 25, 2019 · 4 comments
Labels
Feature Request This issue is made to request a feature.

Comments

@d1y
Copy link

d1y commented Aug 25, 2019

>>> import http
>>> http.get('https://h5.m.taobao.com/ocean/privatenode/shop.html?&sellerId=50852803')
>>> fc := http.get('https://h5.m.taobao.com/ocean/privatenode/shop.html?&sellerId=50852803')
>>> println(fc)
.vrepl.v:4 `?http.Response` needs to have method `str() string` to be printable

Currently in the REPL can only be converted to str and then printed, which is very difficult. And, I want to be able to add a value function that can see all the properties, just like in python dir()

>>> import os
>>> dir(os)

I hope to solve the problem of putting the cache file under /tmp when running the file. Otherwise, the cache file will be added to git when compiling. This is too uncomfortable.

@d1y d1y added the Feature Request This issue is made to request a feature. label Aug 25, 2019
@spytheman
Copy link
Member

About the tmp.c files: PR #1743 will make git ignore all *.tmp.c files inside this repo.

@d1y
Copy link
Author

d1y commented Aug 26, 2019

About the tmp.c files: PR #1743 will make git ignore all *.tmp.c files inside this repo.

run .v file and REPL runtime Will create a bunch of meaningless files.
Is creating a cache file in the current directory, which is very difficult

@spytheman
Copy link
Member

You mean the .vrepl.v file ?

@d1y
Copy link
Author

d1y commented Aug 26, 2019

You mean the .vrepl.v file ?

Yes

@vlang vlang locked and limited conversation to collaborators Sep 22, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

No branches or pull requests

3 participants