3
가능한 중복은 :스칼라 제네릭에서 <% 연산자는 무엇을 의미합니까?
가object http extends Around { def around[T <% Result](t: =>T) = openHttpSession("test") { t // execute t inside a http session } }
이 코드의 소스가 될 수 있습니다 specs2에서
What are Scala context and view bounds?
다음 예제가있는 약이라는 방법, documented here있다 발견 된 사람은 here입니다.
나는이 문맥에서 < % 연산자가 의미하는 바가 궁금합니다.
편집 : 여기 What are Scala context and view bounds?
Google은 기호를 검색하는 데 어려움이 있지만 PDF 뷰어는 매우 좋습니다. [Scala Language Specification] (http : /www.scala-lang.org/docu/files/ScalaReference.pdf) (또는 "SLS"). 이 유형 제한에 대한 용어는 "보기 경계"입니다. –
이 기호 별 검색 엔진을 사용하여 찾으려면 http://symbolhound.com/을 사용해야했습니다. – JulienD