これは超訳です。
CSSLintは「なんでこんなルールなんだ…」とイラっとすることが多いですけど、それぞれにそれなりに理由があります。まぁ勿論無視するべきなルールとかもあります。例えば見出し要素の再定義禁止とかはHTML5に対するCSSなら無理な話です。そんなわけでどんな理由なのかを簡単に訳しました。無視するかどうかは自分で決めましょう!
この訳はCSSLintと同じライセンスで提供されます。
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| ;;; Author: Scott Jaderholm | |
| ;;; Created: 2009-12-18 | |
| ;;; | |
| ;;; Short Description: Automates the creation of unit conversion | |
| ;;; functions and includes several common ones. | |
| ;;; | |
| ;;; Detailed Description: So for inches, feet, and meters, if you | |
| ;;; provide equations for inches-to-feet and feet-to-meters, then this | |
| ;;; package will automatically create feet-to-inches, meters-to-feet, | |
| ;;; inches-to-meters, meters-to-inches, and all the corresponding |
| ;annotation syntax | |
| (import [java.lang.annotation Retention RetentionPolicy Target ElementType] | |
| [javax.xml.ws WebServiceRef WebServiceRefs]) | |
| (definterface Foo (foo [])) | |
| ;annotation on type | |
| (deftype ^{Deprecated true | |
| Retention RetentionPolicy/RUNTIME | |
| javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"] |
| <?php | |
| namespace Holy\Tests; | |
| use Holy\Loader; | |
| /** | |
| * LoaderTest | |
| * | |
| * @author [email protected] | |
| */ |
| package appdirtest; | |
| import java.awt.BorderLayout; | |
| import java.awt.Container; | |
| import java.io.*; | |
| import java.net.URISyntaxException; | |
| import java.net.URL; | |
| import java.security.CodeSource; | |
| import java.security.ProtectionDomain; | |
| import javax.swing.JFrame; |
| ;; This function is quoted from this page. Thanks to Tomohiro Matsuyama. | |
| ;; http://dev.ariel-networks.com/Members/matsuyama/pretty-lambda-in-emacs/ | |
| (defun set-pretty-patterns (patterns) | |
| (loop for (glyph . pairs) in patterns do | |
| (loop for (regexp . major-modes) in pairs do | |
| (loop for major-mode in major-modes do | |
| (let ((major-mode (intern (concat (symbol-name major-mode) "-mode"))) | |
| (n (if (string-match "\\\\([^?]" regexp) 1 0))) | |
| (font-lock-add-keywords major-mode | |
| `((,regexp (0 (prog1 () |
この記事は、lispリーダーマクロアドベントカレンダー の4日目の記事です。 タイトルにある通り、Clojure でのリー ダーマクロについて取り扱います(対象とする Clojure のバージョンは 1.4)。