--I'm with Raider on this on this one. I use both Py-- BrainFuck and Lua, and love them both.
You use the BF interpreter implemented in Python?
--Although the "none-existant = nil" thing was something I liked at first, later on it just annoys me, because Lua won't complain if I misspell anything other than an indexed table or called function.
Woa, good point. I'd better remember that.
--BTW, about the obey thing: Have you read this thread? Any questions about motivation are better directed at rude .
Aye, I'd seen that. Merely wondering what it was about, =P
Compliance will ensue should I get an avatar!
This is not sparta..? I am lost ;_;
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: This is not sparta..? I am lost ;_;
Haha, no. It was an inside joke (perhaps this was not the best place for it ). You see, because mentioning Python here makes people jokingly cry "heretic!", I started using BrainFuck as a euphemism for Python.Raider wrote:You use the BF interpreter implemented in Python?
Help us help you: attach a .love.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: This is not sparta..? I am lost ;_;
people? only one personality here
on-topic:
one of the most annoying things is that you cant copy a table
and though debbugging nils is not easy but it provides some new ways to handle stuff
on-topic:
one of the most annoying things is that you cant copy a table
and though debbugging nils is not easy but it provides some new ways to handle stuff
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: This is not sparta..? I am lost ;_;
I was using people as a euphemism for you. I don't know if you know this, but people are afraid of mentioning you. (And by people, I mean me. )bartbes wrote:people? only one personality here
True, true and true. It's also a shame that you can't just print() tables.bartbes wrote:one of the most annoying things is that you cant copy a table
and though debbugging nils is not easy but it provides some new ways to handle stuff
Help us help you: attach a .love.
Re: This is not sparta..? I am lost ;_;
Robin wrote:It's also a shame that you can't just print() tables.
Code: Select all
function printtable(t)
for k,v in pairs(t) do
print(tostring(k)..": "..tostring(v))
end
end
We can also get more complicated and implement recursion through tables inside tables...
Code: Select all
function printtable(t, i)
if not i then i = 0 end
local indent = string.rep("\t", i)
for k,v in pairs(t) do
if type(v) == "table" then
print(indent..tostring(k).." (table): ")
printtable(v, i+1)
else
print(indent..tostring(k)..": "..tostring(v))
end
end
end
Code: Select all
oldprint = print
function print(...)
local a = {...}
if #a == 1 and type(a[1]) == "table" then -- only printtable if there's one argument (and it's a table)
printtable(a1)
else
oldprint(...)
end
end
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: This is not sparta..? I am lost ;_;
See? That's what I mean. It's horrible. Horrible, I say!anjo wrote:There's your basic printtable function.
We can also get more complicated and implement recursion through tables inside tables...
<snip />
Only if you call print with one argument, that is a table, will it do printtable. (The reason for this is because trying to reconcile printtable with print's standard formatting is an exercise in tearing your hair out )
Other than that, Lua's nice. But for most things that don't involve LÖVE, I prefer BrainFuck (if you know what I mean )
Help us help you: attach a .love.
Re: This is not sparta..? I am lost ;_;
Threads are not transformers which become vehicles for discussion about Python vs Lua.
(Even if it IS balanced and both parties are making perfectly calm, logical points about the advantages and disadvantages.)
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: This is not sparta..? I am lost ;_;
They are in the LÖVE CLUB. Here, on-topic posts are rare collectors items (especially in good threads ).Raider wrote:Threads are not transformers which become vehicles for discussion about Python vs Lua.
Help us help you: attach a .love.
Re: This is not sparta..? I am lost ;_;
I did well in my english essay today.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: This is not sparta..? I am lost ;_;
I just let my cat inside.
Who is online
Users browsing this forum: No registered users and 7 guests