ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Voinov <voins@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] I: alterator internals - 2
Date: Fri, 27 May 2005 21:03:52 +0400
Message-ID: <20050527170352.GA31649@altlinux.ru> (raw)
In-Reply-To: <20050527083052.GA18766@basalt.office.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]

Stanislav Ievlev wrote

> 2.3 Имена
> 
> Выражение: (* 10 50) хорошо, а: (* width height) лучше.
> (3.1415926 * 10.5 * 10.5) - интригующе, а (* pi radius radius) - всё же
> понятнее, (+ 2/3 5/7) - какие-то невзрачные действия с дробями, а 
> (+ my-piece-of-cake your-piece-of-cake) - уже обретает смысл.
Надо, наверное, чуть-чуть добавить, что в отношении всяческих имён в
scheme намного свободней чем в других языках. Вполне допустимыми являются
имена типа string->integer или substring/shared. Формально набор символов
описан здесь:
http://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-5.html#%_sec_2.1


> Наверное вы заметили, что комментарии к коду я пишу начиная их с ";". Это
> не случайно, все комментарии в тексте программы начинаются с символа ';'.
> Когда интерпретатор или компилятор читает наш код, весь текст начинающийся
> с ';' и до конца строки он игнорирует.
Полезные ссылки по теме:
http://community.schemewiki.org/?comment-style
http://community.schemewiki.org/?scheme-style


> 2.4 Про истину
> 
> Если говорить кратко "всё есть истина кроме лжи", то есть
> 3 - это истина
> 3.5 - это истина
> "test" - это истина
> Вообще все другие типы, которые мы ещё не изучили - это истина.
> Все кроме лжи, которая имеет обозначение #f.
Для тех, кто немного знает другие языки: 0 - тоже #t.
(if 0 111 222)       ; -> 111
(if (not 0) 111 222) ; -> 222

Для тех, кто знает Common Lisp или T: '() - тоже #t.



-- 
Best Regards!
Alexey Voinov
	     
voins@voins.program.ru
voins@altlinux.ru


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-05-27 17:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-27  8:30 Stanislav Ievlev
2005-05-27 17:03 ` Alexey Voinov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050527170352.GA31649@altlinux.ru \
    --to=voins@altlinux.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git