On Thu, Nov 16, 2017 at 2:59 AM, Myrddin Emrys <myrd...@gmail.com> wrote:
> That's not really Shiyao's question. The question really ends up being,
> 'What is the scope of a fish file outside of a function body?' Most
> programming languages have an implicit scope for the program itself.
>

For example, in Python:

// test.py

a = 3

def func():
    print(a)

func()

// file ends

this will print 3.


the behavior of test.fish really confuses me on this regard.




-- 
Best,
Shiyao

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to