mva
дык кто бы спорил
Lua тебе не ш̶в̶е̶й̶ц̶а̶р̶с̶к̶и̶й̶ ̶н̶о̶ж̶ python. Профит Lua не в мегафичастости, а в том, что у тебя есть всё, чтобы ты мог себ есделать всё, что угодно. Как говаривал один мой знакомый, Python tries to give you as mush as possible, Lua tries to give you as less as possible
Andrey
на самом деле оч часто в верхнее пространство имен нужно делать скоп
Andrey
особенно когда тебе на вход подают какой нить Эксель
mva
а пример можно ?
ну, что-то а-ля: a(t,...) local t = t or _G local arg = {...} local exctracted = t.moo <...working with args...> a(t,...) -- recrsive call end
mva
тогда не говорите что рекурсии не нужны
а никто и не говорил что они НЕ НУЖНЫ
mva
речь шла о том, что (разной ценой, но, тем не менее) почти всегда и всё что угодно можно сделать и без рекурсии
mva
дело только в том, сколько для этого нужно будет потрахаться (и будет ли это большим или меньшим количеством секса, чем с рекурсией)
Andrey
Всегда
Snusmumriken
ну например
(я уже сплю)
Andrey
не всегда
Andrey
извини :)
Andrey
Я тоже спать
Andrey
А давайте завтра придумаем что то без рекурсий
Andrey
и на луа
Andrey
Спокойной ночи!
mva
вы мне лучше расскажите что там за офисы в Lua стоят у товарища бота
Andrey
Это же обычное явление чувак постит рекламную хрень по телеграмам
Andrey
а скорее всего робот
Andrey
его надо на что то проверить и исключить
mva
Well, in Python, when I want to know if the library I want to use is there, or do not use "socket"
prove me you're not a markov's chains. You speaking almost exactly like them. It is merely possible to understand the start of the sentence, but it's last part is ABSOLUTELLY IRRELEVANT and impossible to understand. Try to rephrase in multiple sentences, please.
Anonymous
require"socket"
Andrey
Andrey
Вадим не печатай пока
mva
i said "in multiple sentences". It means more verbosely, but not less. As for now, I have following from you: 1) "in pyhton when I want to check if library is present" // then WHAT? Where is the end of the sentence? it's incomplete 2) require"socket" // so, what? absolutelly irrelevant piece of code.
Andrey
сек
Anonymous
😡😡😡😡😡😡
Andrey
Бот
Andrey
😡😡😡😡😡😡
... pyhton... 123
Anonymous
Бот
I'm not here to play please ... How can I find out what offices are installed in luarocks from the predator that when I install lua inside it there are libraries with it I think you understand my intention
mva
Well, in Python, when I want to know if the library I want to use is there, or do not use "socket"
re-read this you start from "when I want", then you miss "THEN I <do something>", and instead of that you write "or do not use socket" (WTF does it mean?)
mva
we doesn't know anything about what do you mean under "installed offices" in context of Lua. Here is nothing can be called that way.
Anonymous
where a u from ?
I'm from ALGERIA
Mikhail
Перенаправить его в обычную англ Lua группу.
mva
I'm not here to play please ... How can I find out what offices are installed in luarocks from the predator that when I install lua inside it there are libraries with it I think you understand my intention
additianally, I dont understand the "... from the predator ..." part too. What is predator in that context? Lua implementation? Library author? Or what?
Mikhail
Google translator
mva
but anyway, we can't go further, until you describe what do you mean under "installed offices". Try to name it in other words.
mva
Library? module? package? anything else?
Andrey
office ?
Anonymous
module
Mikhail
I'm from ALGERIA
Here's an English Lua group. Join it as well. Check out Lua: https://t.me/LuaLang
Andrey
mva
module
so, it is only way to check if the module is already loaded or not, is to look in package.loaded table. Or do you want to know if the module exists on the filesystem before loading it?
Andrey
local a,b = myFunction() b - будет ведь локально проинициализирована ?
mva
смотря что вернёт myFunction()
mva
если только одну переменную, то b будет nil
Andrey
local a,b = myFunction() b - будет ведь локально проинициализирована ?
обьявлена будет локально, прониицилизирована в зависимости отрезультата функции
Snusmumriken
local a,b = myFunction() b - будет ведь локально проинициализирована ?
Да, она будет локально проинициализирована.
Anonymous
hi bro goodmorning
Anonymous
hoe are you all
hoe are you all
fine sank u
Anonymous
fine sank u
fine thank you brother
Anonymous
Can I design a library in a particular field
Bit
Can I design a library in a particular field
Hi. What do you mean? Can you explain about "particular field"?
Snusmumriken
Anonymous
Of course you can! Do it!
Звучит как лозунг :)
Snusmumriken
Ну, товарищ спрашивает, может ли он — конечно может. Он может вообще всё что угодно. Построить самотрансформирующийся космический шаттл и проверить, плоская ли земля. Запросто. Достаточно только (поверить в себя) сделать это.
Anonymous
Думается мне, что он спрашивает "можно ли это". Ну типа ис поссибл то
Anonymous
Снус последнее время очень злой
Snusmumriken
В последнее время что-то много людей, которые хотят готовых ответов. Типа "напишите мне игрушку, суть токова: домики деревянные нобегают и ещё охрана дворца". Ну и отвечать на криво сформированные вопросы — тоже такое себе занятие. Последний мой знакомый телепат уволился.
Anonymous
Может здесь более лампово и лучше отвечают)
Snusmumriken
С таким английским, можно в любую группу писать, хоть турецкую.
Snusmumriken
Да пофигу, это в англоязычном чатике "english only" даже на расхожие фразочки, а ля "Всем привет в этом чате" и "Aloha". Мне греет душу мысль что в этом чате не такие твердолобые чуваки.
Bit
Поддержим интернационал 🙂
Вообще говоря, не уверен, что это не генератор шизофазического текста.
Snusmumriken
Вопрос не в шизофазии а в том, что кто-то даже не переводит переводчиком. Когда я трындю с англоязычными чуваками, я три раза перевожу то что написал туда-сюда-обратно, чтобы быть более-менее уверенным в том что правильно описал то что надо. Да, мой английский такой себе.
Anonymous
hi all
Anonymous
Hi
Anonymous
Where are you from, woodie?
Anonymous
Kirill
Kirill
Lets write os on lua
Kirill
:D
Kirill
But thats a thing
Snusmumriken
Штош.