про указатели (программистское, англ.)
Комментарий в дискуссии на Hacker News предложил следующий отрывок в качестве 30-секундного введения в указатели в C. Мне понравилась эта идея, только я бы немного подправил заголовок и назвал это 30-секундным введением в указатели и ссылки в C++:
`It's long,' said the Knight, `but very, very beautiful. Everybody that hears me sing it -- either it brings the tears into their eyes, or else -- '
`Or else what?' said Alice, for the Knight had made a sudden pause.
`Or else it doesn't, you know. The name of the song is called "Haddocks' Eyes."'
`Oh, that's the name of the song, is it?' Alice said, trying to feel interested.
`No, you don't understand,' the Knight said, looking a little vexed. `That's what the name is called. The name really is "The Aged Aged Man."'
`Then I ought to have said "That's what the song is called"?' Alice corrected herself.
`No, you oughtn't: that's quite another thing! The song is called "Ways and Means": but that's only what it's called, you know!'
`Well, what is the song, then?' said Alice, who was by this time completely bewildered.
`I was coming to that,' the Knight said. `The song really is "A-sitting On A Gate": and the tune's my own invention.'
`It's long,' said the Knight, `but very, very beautiful. Everybody that hears me sing it -- either it brings the tears into their eyes, or else -- '
`Or else what?' said Alice, for the Knight had made a sudden pause.
`Or else it doesn't, you know. The name of the song is called "Haddocks' Eyes."'
`Oh, that's the name of the song, is it?' Alice said, trying to feel interested.
`No, you don't understand,' the Knight said, looking a little vexed. `That's what the name is called. The name really is "The Aged Aged Man."'
`Then I ought to have said "That's what the song is called"?' Alice corrected herself.
`No, you oughtn't: that's quite another thing! The song is called "Ways and Means": but that's only what it's called, you know!'
`Well, what is the song, then?' said Alice, who was by this time completely bewildered.
`I was coming to that,' the Knight said. `The song really is "A-sitting On A Gate": and the tune's my own invention.'
no subject
Let's just standardize the calling conventions for songs.
С детства помню
Цитата из примечаний:
"Для человека, искушенного в логике и семантике, все это вполне понятно. Песня эта есть "Сидящий на стене"; она _называется_ "С горем пополам"; _имя_ песни - "Древний старичок"; имя это называется_ "Пуговки для сюртуков". Кэрролл здесь различает предметы, имена предметов и имена
имен предметов. "Пуговки для сюртуков", имя имени, принадлежит к той области, которую в современной логике именуют "метаязыком". Приняв соглашение о иерархии метаязыков, логикам удается избежать определенных парадоксов, которые мучили их со времен древних греков."
http://lib.ru/CARROLL/carrol1_2.txt
Re: С детства помню
Re: С детства помню
Re: С детства помню
Re: С детства помню
Кэррол вообще занудный.
no subject
no subject
no subject
no subject
no subject